package www.wen.com.common.lib.data.entities

/**
 * @author WEN
 * @Description:
 * @date 2021/9/20 9:05
 */

enum class MessageType(val messageStr: String, val remoteType: String) {
    ALL_MESSAGES("所有消息", "1"), APPOINT_MESSAGES("@消息", "2"), NO_NOTICE("无通知", "0")
}

data class MessageTypeChooseEntity(val msg:MessageType,var isSelected:Boolean = false)

enum class NavigationFromType{

    FROM_RECOMMENDATION,FROM_SERVER

}

enum class GenderSelectionType(val gender:String){

    CONFIDENTIALITY("保密的"),
    MALE("男"),
    FEMALE("女");

    companion object{

        fun pareGenderSelectionType(genderStr:String):GenderSelectionType{
            values().find {
                it.gender == genderStr
            }?.run {
                return this
            }
            return MALE
        }

        fun pareGenderSelectionType(genderInt:Int):GenderSelectionType{
            values().find {
                it.ordinal == genderInt
            }?.run {
                return this
            }
            return MALE
        }

    }


}


